/*
 * @Author: Vorga
 * @LastEditors: Vorga
 */
#ifndef COMPRESS_H_INCLUDED
#define COMPRESS_H_INCLUDED

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <time.h>

typedef struct Node{
    int val;
    int row;
    int col;
}Node;

typedef struct Matrix{
    Node *arr;
    int len;
}Matrix;

Matrix* create_triple_mat(int n,int (*arr)[n]);

Matrix* create_rect_mat(int n,int (*arr)[n]);

int access_triple_mat(Matrix* matrix,int row, int col);

int access_rect_mat(Matrix* matrix,int row, int col);

#endif // COMPRESS_H_INCLUDED
